package com.yf.springboot.springboot.web;

import com.yf.springboot.springboot.bean.User;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
@Slf4j
public class InterceptorController {

    @PostMapping("/login")
    public String login(@RequestParam User user) {
        log.info("user: ", user);

        return "success";
    }
}
